package com.gitee.zw.irmp.report.dao;

import com.gitee.zw.irmp.report.entity.ReportGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ReportGroupRepository extends JpaRepository<ReportGroup, String> {

    @Query(value = "select * from ri_rpt_group g where g.parent_group is null", nativeQuery = true)
    List<ReportGroup> findFirstLevelGroups();


}
